package com.sh.test.inner;

import com.springframework.annotation.YcComponent;
import com.springframework.annotation.YcResource;

@YcComponent
public class A {

    @YcResource(value = "b")
    private  B b;

    public A(B b) {
        this.b = b;
    }

    public A() {
    }

    public B getB() {
        System.out.println("我是A  我来获取我的属性 B.b" + b);
        return b;
    }
}
